﻿#include "requestqueue.h"
#include <QNetworkAccessManager>
#include <QNetworkProxy>

namespace yc {

RequestQueue::RequestQueue(int parallel_count, QObject* parent)
    : TaskManager(parallel_count, parent)
{
    net_mgr_ = new QNetworkAccessManager(this);
    net_mgr_->setProxy(QNetworkProxy::NoProxy);
}

void RequestQueue::cancelRequest(int id)
{
    terminateTask(id);
}
} // namespace yc
